<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			
			var age = 60;
			var  gender = '男';
			
			
			//男士的退休规则
			console.log("age:"+age)
			console.log("gender:"+gender)
			console.log('age>=60: '+(age>=60))
			console.log("gender=='男' "+(gender=='男'))
			console.log("age>=60  &&   gender=='男'   "+( age>=60  &&   gender=='男'  ))
			
			
			
			console.log("\r\n\r\n")
			age = 55;
			gender = '男';
			//男士的退休规则
			console.log("age:"+age)
			console.log("gender:"+gender)
			console.log('age>=60: '+(age>=60))
			console.log("gender=='男' "+(gender=='男'))
			console.log("age>=60  &&   gender=='男'   "+( age>=60  &&   gender=='男'  ))
			
			console.log("\r\n\r\n")
			console.log(" true && true\t\t" +(true && true) )
			console.log(" true && false\t\t"  +(true && false))
			console.log(" false && true\t\t"  +(false && true))
			console.log(" false && flase\t\t"  +(false && false))
			
			
			
			// 男性60 或的 女性 55()
			// 逻辑与
			age = 61;
			gender = "男";
			console.log("age:"+age)
			console.log("gender:"+gender)
			console.log("(age>=60 && gender =='男')    ||     (age>=55 && gender =='女'):    "+(	(age>=60 && gender =='男')    ||     (age>=55 && gender =='女')))
			console.log(" true || true\t\t" +(true || true) )
			console.log(" true || false\t\t"  +(true || false))
			console.log(" false || true\t\t"  +(false || true))
			console.log(" false || flase\t\t"  +(false || false))
			
			
			var success = false; //考试是否通过
			if(!success){
				console.log("通知补考....")
			}
			console.log(" !true "+(!true)) ;// false
 			console.log(" !false "+(!false)) ;// true
 			console.log(" !!false "+(!!false)) ;// false
 			console.log(" !!!false "+(!!!false)) ;// false
			
			
			
			
			//逻辑短路
			var num = 60;
			success = false;
			console.log("success && num++>60 : "+(success && num++>60));
			console.log("num: "+num);
			
			
			
			
			
			
					
		</script>
	</head>
	<body>
		
		
		
		
		
		
		
	</body>
</html>
